<#assign pageName="修改平台信息">
<@override name="head-styles">

</@override>
<@override name="page-content">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>${pageName}</legend>
    </fieldset>
    <form class="layui-form padding-10" lay-filter="formGuidEdit">
         <@ctrl.Hidden path="guids.indate" />
         <@ctrl.Hidden path="guids.innerCode" />
         <@ctrl.TreeSelect path="guids.upperGuid" dataList=guidsList![] fieldText="sysModuleName" 
             fieldValue="guid" labelText="上级平台" fieldParentID="upperGuid" parentidValue="-1" required="required">
             <option value="-1">－无上级平台－</option>
         </@ctrl.TreeSelect>
         <@ctrl.SingleSelect path="guids.sysModuleType" options={"1":"业务平台","-1":"标识平台"} labelText="平台类型" required="required"/>
         <@ctrl.Textbox path="guids.guid" labelText="平台GUID" required="required" attributes="readonly"/>
         <@ctrl.Textbox path="guids.sysModuleCode" labelText="平台编码" required="required"/>
         <@ctrl.Textbox path="guids.sysModuleName" labelText="平台名称" required="required"/>
         <@ctrl.Textbox path="guids.versionNo" labelText="当前版本" required="required"/>
         <@ctrl.SingleSelect path="guids.status" options={'T':'启用','F':'禁用'} labelText="启用状态" required="required"/>
         <@ctrl.FormAction backURL="../management"/>
     </form>
</@override>
<@override name="page-scripts">
<script>
    $(function(){
        layui.use(['form','layer', 'jquery'], function(){
            var form = layui.form;
            var layer=layui.layer;
            $=layui.jquery;
            //监听提交
            form.on('submit(submit)', function(data){
                submitData(data.field, '${contextPath}/admin/guids/edit', function(){location.href="${contextPath}/admin/guids/management";});
                return false;
            });
        })
    })
</script>
</@override>
<@extends name="/layout/basepage.html"/> 